<form class="layui-form layui-form-pane form-search" action="{:sysuri()}" onsubmit="return false" method="get" autocomplete="off" style="padding: 10px;" lay-filter="order_search_form">

    {if $account_show}
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('公司')}</label>
        <div class="layui-input-inline">
            <select class="layui-select" name="account_id" lay-filter="account">
                <option value=''>-- {:lang('全部')} --</option>
                {foreach $account_arr as $k=>$v}
                <option   value="{$k}">{$v}</option>
                {/foreach}
            </select>
        </div>
    </div>
    {/if}

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('平台')}</label>
        <div class="layui-input-inline">
          <select name="platform_id" class="layui-select" lay-filter="platform">
            <option value="">全部</option>
              {foreach $platform_list as $key=>$val}
              <option value="{$key|default=''}">{$val|default=''}</option>
              {/foreach}
          </select>
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('店铺')}</label>
        <div class="layui-input-inline">
          <select name="shop_id" class="layui-select">
            <option value="">全部</option>
              {if !empty($shop_list) }
              {foreach $shop_list as $key=>$val}
              <option value="{$key|default=''}">{$val|default=''}</option>
              {/foreach}
              {/if}
          </select>
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('订单编号')}</label>
        <label class="layui-input-inline">
            <input name="order_no" value="" placeholder="{:lang('请输入订单编号')}" class="layui-input">
        </label>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('订单单号')}</label>
        <label class="layui-input-inline">
            <input name="order_number" value="" placeholder="{:lang('请输入订单单号')}" class="layui-input">
        </label>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('订单状态')}</label>
        <div class="layui-input-inline">
          <select name="type" class="layui-select">
            <option value="">全部</option>
              {foreach $status_arr as $key=>$val}
              <option value="{$key|default=''}">{$val|default=''}</option>
              {/foreach}
          </select>
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('购买人')}</label>
        <label class="layui-input-inline">
            <input name="buy_user" value="{$get.buy_user|default=''}" placeholder="{:lang('请输入购买人姓名')}" class="layui-input">
        </label>
    </div>

    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('手机号')}</label>
        <label class="layui-input-inline">
            <input name="buy_mobile" value="{$get.buy_mobile|default=''}" placeholder="{:lang('请输入手机号')}" class="layui-input">
        </label>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('推送状态')}</label>
        <div class="layui-input-inline">
          <select name="sync_status" class="layui-select">
            <option value="">全部</option>
              {foreach $sync_status_arr as $key=>$val}
              <option value="{$key|default=''}">{$val|default=''}</option>
              {/foreach}
          </select>
        </div>
    </div>


    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('下单时间')}</label>
        <div class="layui-input-inline">
            <input data-date-range name="order_time" value="" placeholder="{:lang('请选择下单时间')}" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item layui-inline">
        <label class="layui-form-label">{:lang('发货时间')}</label>
        <div class="layui-input-inline">
            <input data-date-range name="delivery_time" value="" placeholder="{:lang('请选择发货时间')}" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item layui-inline">
        {if empty($account_show) }
        <input type="hidden" name="account_id" value="{$account_id|default=0}">
        {/if}
        <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> {:lang('搜 索')}</button>
        <button class="layui-btn layui-btn-primary reset" type="reset"> {:lang('重置')}</button>
    </div>
</form>